#!/bin/sh

for i in $PLIBDIRS # $PLIBDIRS is exported in 2createpackages
do
	[ -d $i ] || continue
	#so did these, but needed...
	if [ -e ${i}/liblzma.so.5 ] ; then
		ln -sv liblzma.so.5 ${i}/liblzma.so.0 2>/dev/null
		ln -sv liblzma.so.5 ${i}/liblzma.so.1 2>/dev/null
		ln -sv liblzma.so.5 ${i}/liblzma.so.2 2>/dev/null
	elif [ -e ${i}/liblzma.so.2 ] ; then
		ln -sv liblzma.so.2 ${i}/liblzma.so.0 2>/dev/null
		ln -sv liblzma.so.2 ${i}/liblzma.so.1 2>/dev/null
	fi
done
